package com.dufang.thread04Yield;

/**
 * @ClassName:Thread01
 * @Description 线程一
 * @Author dufang
 * @Date 2025/7/7/007 6:51
 * @Version 1.0
 **/
public class Thread01 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+"运行"+i);
            Thread.yield();
        }
    }
}
